import request from '@/utils/request'

// 查询市政公厕管养导入列表
export function listToiletImportBase(query) {
  return request({
    url: '/standingbook/toiletImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询市政公厕管养导入详细
export function getToiletImportBase(batchNo) {
  return request({
    url: '/standingbook/toiletImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增市政公厕管养导入
export function addToiletImportBase(data) {
  return request({
    url: '/standingbook/toiletImportBase',
    method: 'post',
    data: data
  })
}

// 修改市政公厕管养导入
export function updateToiletImportBase(data) {
  return request({
    url: '/standingbook/toiletImportBase',
    method: 'put',
    data: data
  })
}

// 删除市政公厕管养导入
export function delToiletImportBase(batchNo) {
  return request({
    url: '/standingbook/toiletImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/standingbook/toiletImportBase/importData',
    method: 'post',
    data: data
  })
}
